<?php

class m140616_023134_allow_material_external_token extends CDbMigration
{
	public function safeUp() {
		$this->dropColumn('erp_material_expense', 'externalToken');
		$this->addColumn('erp_material_expense', 'externalTokenDate', 'date');
		$this->addColumn('erp_material_expense', 'externalTokenNumber', 'integer');
	}

	public function safeDown() {
		$this->dropColumn('erp_material_expense', 'externalTokenDate');
		$this->dropColumn('erp_material_expense', 'externalTokenNumber');
		$this->addColumn('erp_material_expense', 'externalToken', 'string');
	}
}